package hik.entity.preset;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
@XmlType(name = "ThermometryRegion", propOrder = { "id", "enabled", "name", "emissivity", "distance",
		"reflectiveEnable", "reflectiveTemperature","type","distanceUnit","emissivityMode", "region", "point","version","xmlns" })
public class ThermometryRegion {
	public static final String TYPE_REGION = "region";
	public static final String TYPE_LINE = "line";
	public static final String TYPE_POINT = "point";
	
	
	@XmlElement(required = true)
	private int id; // 序号
	@XmlElement(required = true)
	private boolean enabled; // 是否启用
	@XmlElement(required = true)
	private String name; // 名称
	@XmlElement(required = true)
	private String emissivity; // 发射率
	@XmlElement(required = true)
	private int distance; // 距离(m)
	@XmlElement(required = true)
	private boolean reflectiveEnable; // 是否反射
	@XmlElement(required = true)
	private String reflectiveTemperature; // 反射温度(℃)
	@XmlElement(required = true)
	private String type; //类型 region  line  point
	@XmlElement(required = false)
	private String distanceUnit = "centimeter";
	@XmlElement(required = false)
	private String emissivityMode = "customsettings";
	
	@XmlAttribute(required=false)
	private String version;
	@XmlAttribute(required=false)
	private String xmlns ;
	

	@XmlElement(name="Region",required = false)
	private Region region;
	@XmlElement(name="Point",required = false)
	private Point point;
	
	public ThermometryRegion() {
		super();
	}
	
	public ThermometryRegion(int id) {
		this.id = id;
		this.enabled = false;
		this.name = "";
		this.emissivity="0.96";
		this.distance = 0;
		this.reflectiveEnable = false;
		this.reflectiveTemperature = "0";
		this.type = TYPE_POINT;
		this.point = new Point();
	}
	
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmissivity() {
		return emissivity;
	}
	public void setEmissivity(String emissivity) {
		this.emissivity = emissivity;
	}
	public int getDistance() {
		return distance;
	}
	public void setDistance(int distance) {
		this.distance = distance;
	}
	public boolean isReflectiveEnable() {
		return reflectiveEnable;
	}
	public void setReflectiveEnable(boolean reflectiveEnable) {
		this.reflectiveEnable = reflectiveEnable;
	}
	public String getReflectiveTemperature() {
		return reflectiveTemperature;
	}
	public void setReflectiveTemperature(String reflectiveTemperature) {
		this.reflectiveTemperature = reflectiveTemperature;
	}
	public Region getRegion() {
		return region;
	}
	public void setRegion(Region region) {
		this.region = region;
	}
	public Point getPoint() {
		return point;
	}
	public void setPoint(Point point) {
		this.point = point;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getDistanceUnit() {
		return distanceUnit;
	}
	public void setDistanceUnit(String distanceUnit) {
		this.distanceUnit = distanceUnit;
	}
	public String getEmissivityMode() {
		return emissivityMode;
	}
	public void setEmissivityMode(String emissivityMode) {
		this.emissivityMode = emissivityMode;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getXmlns() {
		return xmlns;
	}

	public void setXmlns(String xmlns) {
		this.xmlns = xmlns;
	}
	
	

}
